home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimputils.h.z / gimputils.h
Encoding:
C/C++ Source or Header  |  2002-07-08  |  1.7 KB  |  58 lines

  1. /* LIBGIMP - The GIMP Library 
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimputils.h
  5.  *
  6.  * Copyright (C) 2000 Sven Neumann <sven@gimp.org>
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Lesser General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Lesser General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Lesser General Public
  19.  * License along with this library; if not, write to the
  20.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21.  * Boston, MA 02111-1307, USA.
  22.  */
  23.  
  24. #ifndef __GIMPUTILS_H__
  25. #define __GIMPUTILS_H__
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif /* __cplusplus */
  30.  
  31. /* For information look into the C source or the html documentation */
  32.  
  33.  
  34. /*  
  35.  *  Right now all you find here are the g_strescape and g_strcompress 
  36.  *  function out of glib-1.3. We need their functionality, but don't 
  37.  *  want to rely on that version being installed 
  38.  */
  39.  
  40. #if (defined (GLIB_CHECK_VERSION) && GLIB_CHECK_VERSION (1,3,1))
  41. #define gimp_strescape(string, exceptions) g_strescape (string, exceptions)
  42. #define gimp_strcompress(string)           g_strcompress (string)
  43. #else
  44. gchar * gimp_strescape   (const gchar *source, 
  45.               const gchar *exceptions);
  46. gchar * gimp_strcompress (const gchar *source);
  47. #endif  /* GLIB <= 1.3 */
  48.  
  49.  
  50. #ifdef __cplusplus
  51. }
  52. #endif /* __cplusplus */
  53.  
  54. #endif /* __GIMPUTILS_H__ */
  55.  
  56.  
  57.  
  58.